{template 'member', 'header'}
<script>
function editorder(id){
	var od = $('#order'+id).val();
	var patrn=/^[0-9]{1,6}$/; 
	var s = patrn.test(od);
	if(s==false){
		alert("请填写数字");
		$('#order'+id).val(0);
		return false;
	}
	$.post("index.php?m=member&c=content&a=update_order", {
		id :id,
		catid:24,
		col:'order',
		order:od
	}, function(data) {
		if(data==1){
			alert('修改成功');
			
		}else{
			alert('修改失败');
		}
		return false;
	});
}
</script>
<div id="main-content">
<div id="memberArea">
	{template 'member', 'left'}

<div class="right">
<div class="hd">
  <h3 class="t04"><strong>管理案例</strong> >><a href="#">管理案例</a></h3>

</div>
<div class="bd01"><font class="span05"><img src="{CSS_PATH}images/h_02.gif" />排序用于在公司展示平台案例排序；排序数值越大的案例越靠前</font>
</div>
<div class="hd01">
<ul>
<li><a href="index.php?m=member&c=content&a=published&catid=24" class="hover">管理案例</a></li>
<li><a href="index.php?m=member&c=content&a=publish&siteid=1&catid=24">添加案例</a></li></ul>
</div>
	<table class="table01">
       <thead>
          <tr>

    <th class="th02" style="width:26%;">案例名称(数量)</th>
    <th class="th02" style="width:12%;">所在城市</th>
    <th class="th02" style="width:26%;">排序(数字越大越靠前)</th>
	<th class="th02" style="width:12%;">状态</th>
	<th class="th02" style="width:24%;">操作</th>
  </tr>
        </thead>
    <tbody>
	{loop $datas $info} 
	 <tr>
	  <td style=" text-align:center;"> {str_cut($info['title'], 60)}</td>
    <td style="text-align:center;">{get_linkagevalue(3360,$info[city],'name')}</td>
    <td style="text-align:center;"><input name="" type="text" maxlength="5" class="input01" value="{$info['order']}" style="width:60px; height:16px; margin-right:6px;" id="order{$info['id']}" /><input onclick="return editorder({$info['id']});" name="" type="button" value="修改" style=" vertical-align:2px\0;" /></td>
	<td style="text-align:center;"><font color="#009900">{if $info[status]==99}<font color="#1D94C7">{L('pass')}</font>{elseif !$info[flag]}{L('verify_content')}{else}<a href="index.php?m=member&c=content&a=edit&catid={$info[catid]}&id={$info[id]}"><font color="red">{L('edit')}</font></a>{/if}</font></td>
	<td style="text-align:center;"><a target="_blank" href="{APP_PATH}index.php?m=content&c=company&a=case_detail&userid={$_userid}&id={$info[id]}" class="color13" style="margin:auto 6px;">查看案例</a>{if $info[status]!=99}|<a href="index.php?m=member&c=content&a=edit&catid={$info[catid]}&id={$info[id]}" class="color13" style="margin:auto 6px;">修改</a>{/if}
	<!-- <a href="index.php?m=content&c=content&a=delete&dosubmit=1&catid=14&steps=0" class="color13" style="margin:auto 6px;">删除</a></td>
	  -->
	 
	 
	 

  </tr>
	{/loop}
    </tbody>
    </table>
 <div id="pages"> {$pages}</div>
			</div>
			<span class="o1"></span><span class="o2"></span><span class="o3"></span><span class="o4"></span>
		</div>
	</div>
<div class="clear"></div>
<script language="JavaScript">
<!--
	function c_c(catid) {
		location.href='index.php?m=member&c=content&a=published&siteid={$siteid}&catid='+catid;
	}
//-->
</script>
